<template>
  <div class="home">
     <div class="head">
       <!-- {{$route.meta.name}} -->
       饿了么
     </div>
     <div class="main">
       <!-- 二级路由的出口 -->
        <router-view></router-view>
     </div>
     <div class="tabbar">
       <router-link to="/home/DianYing">首页</router-link>
       <router-link to="/home/YingYuan">分类</router-link>
       <router-link to="/home/YanChu">购物车</router-link>
       <router-link to="/home/My">我的</router-link>
     </div>
  </div>
</template>

<script>

export default {
  name: 'Home',
  components: {
    
  }
}
</script>

<style lang="scss">
*{
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}
html,body,#app,.home{
  width: 100%;
  height: 100%;
}
.home{
    display: flex;
    flex-direction: column;
    .head{
      width: 100%;
      height: 50px;
      font-size: 30px;
      background-color: yellow;
      text-align: center;
    }
    .main{
      flex: 1;
    }
    .tabbar{
      width: 100%;
      height: 50px;
      background-color: yellow;
      display: flex;
      justify-content: space-around;
      align-items: center;
      a{
        font-size: 30px;
      }
    }
}
</style>
